/*
 * Copyright (c) 2018 QJNEXT, Inc - All Rights Reserved
 *
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 */

package com.xiongjie.impl;

import com.xiongjie.IPersonVertxEBProxy;
import io.vertx.codegen.annotations.ProxyGen;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;

@ProxyGen
public interface IPerson {

  static IPerson createProxy(Vertx vertx) {
    return new IPersonVertxEBProxy(vertx, "xiongjie");
  }

  /**
   * 根据name查找Person数据
   * @param name
   * @param resultHandler
   */
  public void getPersonByName(String name, Handler<AsyncResult<JsonObject>> resultHandler);
}

